﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataImportor.aspx.cs" Inherits="VitCode.Web.BaseData.DataImportor" %>

<%@ Register Src="../UserControls/NavigateCtl.ascx" TagName="NavigateCtl" TagPrefix="uc1" %>
<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI" TagPrefix="PaginationGrid" %>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>数据批量导入</title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
     .html
     {
     	background-color:#F1F6FF;
     }
        .style1
        {
            width: 50%;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
    <table style="border: 1px solid #A8CFEB; background-color: #F1F6FF; margin-top: 2px;
        width: 100%;">
        <tr  >
            <td colspan="2" align="left" valign="top">
                <font style="color: Black; size:12px;">您当前位置：数据管理&nbsp;<img src="../Images/navigate.gif" alt=""
                     />&nbsp;数据导入</font>
            </td>
           </tr>
           <tr>
            <td valign="bottom">
               <asp:Menu ID="Menu1" Orientation="Horizontal" StaticMenuItemStyle-CssClass="tab" StaticSelectedStyle-CssClass="selectedTab" CssClass="tabs" OnMenuItemClick="Menu1_MenuItemClick" runat="server" BorderColor="#A8CFEB">
             <Items >
              <asp:MenuItem Text="基本信息" Value="0" Selected="true"  />
              <asp:MenuItem  Text="报错数据列表" Value="1" />
              <asp:MenuItem Text="模板下载" Value="2"></asp:MenuItem>
             </Items>
             </asp:Menu>
            </td>
           </tr>
    </table>
    <div class="tabContents">
      <table id="tblBaseInfo" bordercolor="#b0cde2" width="100%" align="center" border="1"
        runat="server">
        <tr>
            <td class="tdPageObjProMemo">
                数据源文件：
            </td>
            <td class="tdPageObjProMemo">
                <input id="fileSource" style="width: 507px; height: 22px" type="file" size="50" name="fileSource"
                    runat="server" contenteditable="false"/>
                <asp:Label ID="lblCheckSource" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdPageObjProMemo">
                工作表名称：
            </td>
            <td class="tdPageObjProMemo">
                <asp:TextBox ID="txtSheetName" Width="428px" runat="server">sheet1</asp:TextBox><asp:RequiredFieldValidator
                    ID="checkSheetName" runat="server" ErrorMessage="请填写工作表名称" ControlToValidate="txtSheetName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdPageObjProMemo">
                <asp:Button ID="btnCheckData" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" runat="server" Text="校验数据" OnClick="btnCheckData_Click">
                </asp:Button>
                <asp:Button ID="btnImport" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" runat="server" Text="导入数据" CausesValidation="False"
                    Enabled="False" OnClick="btnImport_Click"></asp:Button>
            </td>
            <td  style="text-align: right;" class="tdPageObjProMemo">

                       <asp:Button ID="btnOutput" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" runat="server" Text="模板导出(带检验信息)"
                    Width="158px" CausesValidation="False" Enabled="False" OnClick="btnOutput_Click">
                </asp:Button>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="tdPageObjProMemo"><asp:Label ID="lblMessage" runat="server" ForeColor="#C00000" style="margin-left:10px"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2">
                <PaginationGrid:PaginationGrid ID="pgError" runat="server" AutoGenerateColumns="True"
                    InitPageSize="15" AutoSort="True">
                </PaginationGrid:PaginationGrid>
            </td>
        </tr>
    
    </table>
  
      </asp:View>
       <asp:View ID="View2" runat="server">
         <table id="tlbErrorData" width="100%" runat="server">
        <tr>
            <td>
                <asp:CheckBox ID="cbContainErrMsg" runat="server" Text="是否带出报错信息" AutoPostBack="True"
                    Checked="True" OnCheckedChanged="cbContainErrMsg_CheckedChanged"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td>
                <PaginationGrid:PaginationGrid ID="pgErrorData" runat="server" AutoGenerateColumns="True"
                    InitPageSize="20" AutoSort="True">
                </PaginationGrid:PaginationGrid>
            </td>
        </tr>
    </table>
      </asp:View>
    </asp:MultiView>
   
    </div>
   </form>
</body>
</html>
